Ext.define('BM.view.user.GroupEdit', {
    extend: 'Ext.window.Window',
    alias : 'widget.groupedit',
    title : 'Group Edit',
    layout: 'fit',
    autoShow: true,
    initComponent: function() {
        this.items = [
            {
                xtype: 'form',
                labelWidth:50,
                width:300,
                items: [
                    {
                        xtype: 'textfield',
                        name : 'groupName',
                        fieldLabel: '群组名称',
                        allowBlank: false
                    },
                    {
                        xtype: 'textarea',
                        name : 'memo',
                        fieldLabel: '备注'
                    },
                    {
                        xtype: 'hidden',
                        name : 'id'
                    }
                ]
            }
        ];

        this.buttons = [
            {
                text: 'Save',
                action: 'save'
            },
            {
                text: 'Cancel',
                scope: this,
                handler: this.close
            }
        ];

        this.callParent(arguments);
    }
});